package com.chen.reggie.pojo;

/**
 * @ClassName Employee
 * @Description TODO
 * @Author hainc
 * @Date 2022/9/4 10:12
 * @Version 1.0
 **/
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/*员工 实体类
 * */
@Data
public class Employee implements Serializable {


    private static final long serialVersionUID = -294623340391729177L;
    private Long id;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    //    身份证号码
    private String idNumber;

    private Integer status;

    @TableField( fill = FieldFill.INSERT ) //插入时填充字段
    private LocalDateTime createTime;

    @TableField( fill = FieldFill.INSERT_UPDATE ) //插入和更新时填充字段
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE) //更新时填充字段
    private Long updateUser;

}
